﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web.Http;

namespace MicService.MS4Net.Demo.Controller
{
    public class HelloApiController : ApiController
    {
        [Route("Example01")]
        public string Hello()
        {
            return "Hello MicroService4Net";
        }
        [Route("Example02")]
        public string Add(int x, int y)
        {
            return "Hello MicroService4Net::" + (x + y).ToString();
        }
        [Route("Example03")]
        public string Upper(string str, int y)
        {
            return "Hello MicroService4Net::" + str.ToUpper() + "|" + y.ToString();
        }
    }
}
